What do the browser error codes mean?
Status codes are issued by a server in response to a client’s request made to the server. Typically when your browser requests a web page the host server will give the browser an informational response, a success report, a redirection request or an error.
Write a program that outputs what each of these HTTP status codes mean: 400, 401/403, 404. Any other code is an unknown error for the purpose of this program.
Use this boilerplate code as a starting point:
Remember to add a comment before a subprogram or selection statement to explain its purpose.
Use these resources as a reference to help you meet the success criteria.
Create the unit tests below to check that your program has met the success criteria.
code = 400
code = 401
code = 403
code = 404
code = 500
Check that you have: