WGU D385 EXAM 2 2026 EXAM SCRIPT
COMPLETE QUESTIONS AND SOLUTIONS
GRADED A+
◉ 201 Created. Answer: The request was successful and a new
resource was created
◉ 302 Found. Answer: The requested resource was temporarily
moved
◉ 400 Bad Request. Answer: The server cannot process the request
due to invalid syntax or missing or malformed data
◉ 401 Unauthorized. Answer: The request lacks valid authentication
credentials
◉ 403 Forbidden. Answer: The client is authenticated but does not
have permission to access the resource
◉ 404 Not Found. Answer: The requested resource does not exist on
the server
,◉ 405 Method Not Allowed. Answer: The endpoint exists but does
not support the HTTP method used
◉ 500 Internal Server Error. Answer: The server encountered an
unexpected condition and failed
◉ 503 Service Unavailable. Answer: The server is temporarily
unavailable due to overload or maintenance
◉ 401 vs 403. Answer: 401 means authentication failed or missing
while 403 means authenticated but not authorized
◉ 400 vs 404. Answer: 400 means malformed request while 404
means the resource does not exist
◉ 404 vs 405. Answer: 404 means endpoint missing while 405
means endpoint exists but method is wrong
◉ 400 Bad Request example. Answer: Missing required JSON fields
or wrong data type in a requests.post call
◉ 401 Unauthorized example. Answer: Authorization header
missing or token expired in a requests.get call
, ◉ 403 Forbidden example. Answer: Valid token but user role lacks
permission
◉ 404 Not Found example. Answer: Requesting a resource ID that
does not exist
◉ 405 Method Not Allowed example. Answer: Sending DELETE to a
POST-only endpoint
◉ 500 Internal Server Error example. Answer: Backend exception
raised during request processing
◉ 503 Service Unavailable example. Answer: Server overloaded or
under maintenance
◉ Accept header. Answer: Specifies what content types the client can
accept
◉ Content-Type header. Answer: Specifies the format of the data
being sent or returned
◉ Authorization header. Answer: Contains credentials such as API
keys or bearer tokens
COMPLETE QUESTIONS AND SOLUTIONS
GRADED A+
◉ 201 Created. Answer: The request was successful and a new
resource was created
◉ 302 Found. Answer: The requested resource was temporarily
moved
◉ 400 Bad Request. Answer: The server cannot process the request
due to invalid syntax or missing or malformed data
◉ 401 Unauthorized. Answer: The request lacks valid authentication
credentials
◉ 403 Forbidden. Answer: The client is authenticated but does not
have permission to access the resource
◉ 404 Not Found. Answer: The requested resource does not exist on
the server
,◉ 405 Method Not Allowed. Answer: The endpoint exists but does
not support the HTTP method used
◉ 500 Internal Server Error. Answer: The server encountered an
unexpected condition and failed
◉ 503 Service Unavailable. Answer: The server is temporarily
unavailable due to overload or maintenance
◉ 401 vs 403. Answer: 401 means authentication failed or missing
while 403 means authenticated but not authorized
◉ 400 vs 404. Answer: 400 means malformed request while 404
means the resource does not exist
◉ 404 vs 405. Answer: 404 means endpoint missing while 405
means endpoint exists but method is wrong
◉ 400 Bad Request example. Answer: Missing required JSON fields
or wrong data type in a requests.post call
◉ 401 Unauthorized example. Answer: Authorization header
missing or token expired in a requests.get call
, ◉ 403 Forbidden example. Answer: Valid token but user role lacks
permission
◉ 404 Not Found example. Answer: Requesting a resource ID that
does not exist
◉ 405 Method Not Allowed example. Answer: Sending DELETE to a
POST-only endpoint
◉ 500 Internal Server Error example. Answer: Backend exception
raised during request processing
◉ 503 Service Unavailable example. Answer: Server overloaded or
under maintenance
◉ Accept header. Answer: Specifies what content types the client can
accept
◉ Content-Type header. Answer: Specifies the format of the data
being sent or returned
◉ Authorization header. Answer: Contains credentials such as API
keys or bearer tokens