HTTP Status Codes Flashcards

1
Q

200 OK

A

The request has succeeded. The information returned with the response is dependent on the method used in the request, for example:

GET an entity corresponding to the requested resource is sent in the response;

POST an entity describing or containing the result of the action

https://www.restapitutorial.com/httpstatuscodes.html

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

201 Created

A

The request has been fulfilled and resulted in a new resource being created.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

204 No Content

A

The server has fulfilled the request but does not need to return an entity-body, and might want to return updated metainformation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

304 Not Modified

A

If the client has performed a conditional GET request and access is allowed, but the document has not been modified, the server SHOULD respond with this status code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

400 Bad Request

A

The request could not be understood by the server due to malformed syntax.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

401 Unauthorized

A

The request requires user authentication. The response MUST include a WWW-Authenticate header field (section 14.47) containing a challenge applicable to the requested resource. The client MAY repeat the request with a suitable Authorization header field (section 14.8). If the request already included Authorization credentials, then the 401 response indicates that authorization has been refused for those credentials.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

403 Forbidden

A

The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated. If the request method was not HEAD and the server wishes to make public why the request has not been fulfilled, it SHOULD describe the reason for the refusal in the entity. If the server does not wish to make this information available to the client, the status code 404 (Not Found) can be used instead.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

404 Not Found

A

The server has not found anything matching the Request-URI.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

409 Conflict

A

The request could not be completed due to a conflict with the current state of the resource. This code is only allowed in situations where it is expected that the user might be able to resolve the conflict and resubmit the request. The response body SHOULD include enough information for the user to recognize the source of the conflict.

Conflicts are most likely to occur in response to a PUT request. For example, if versioning were being used and the entity being PUT included changes to a resource which conflict with those made by an earlier (third-party) request, the server might use the 409 response to indicate that it can’t complete the request.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

500 Internal Server Error

A

The server encountered an unexpected condition which prevented it from fulfilling the request.

A generic error message, given when no more specific message is suitable.

The general catch-all error when the server-side throws an exception.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly