When issuing a query using either the q or REST interface, a common interface is used for sending the request and indicating status. Requests can include custom fields using a request header to tune the behavior of the query. On response, a response header is sent back with a return code indicating the overall status of the request, and an application code indicating any specific response statues.
- Read more about request and response headers
- Read more about return codes