Search Legislation

HTTP Responses

This page describes the use of HTTP responses within Legislation API.

Requests

It should be noted that the Legislation API is currently 'read-only' and that the only HTTP methods supported are GET and HEAD.

Response Codes

One of the objectives of the API is to correctly implement the use of HTTP response codes for all requests. By doing this a user agent can correctly process the response sent to it safe if the knowledge that the status code being sent correctly reflects the server's intention.

Response codes have been implemented as per http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

Individual pages within Help will give more detail on the expected response codes that will occur given the possible scenarios.

Compression

Pages are set to compress the content being served if the response is larger than 512KB.