The response shall have the following syntax:
version SP status-code SP reason-phrase CRLF
[Content-Type: media-type CRLF]
[Content-Location: url CRLF]
[(Content-Length: uint / Transfer-Encoding: encoding) CRLF]
*(header-field CRLF)
CRLF
[payload / status-report]
Table 10.6.3-1 shows some common status codes corresponding to this transaction. See also Section 8.5 for additional status codes.
Table 10.6.3-1. Status Code Meaning
Status
|
Code
|
Meaning
|
Success
|
200 (OK)
|
The search completed successfully, and the results are contained in the payload. If there are additional results available or there are warnings the Warning header field shall contain a URL referencing a Search Status report.
|
204 (No Content)
|
The search completed successfully, but there were zero results.
|
Failure
|
400 (Bad Request)
|
The was a problem with the request. For example, the Query Parameter syntax is incorrect.
|
413 (Payload Too Large)
|
The search was too broad, and the body of the response should contain a Status Report with additional information about the failure.
|