The API uses HTTP redirection where appropriate, for example, for resources that have moved location. Clients should assume any requests may result in redirection and handle it appropriately depending on the HTTP status code. All redirect responses will have a Location
header field containing the URI the client should request next. The following status codes are used for redirection:
Status Code | Description |
---|---|
301 | The requested resource has been permanently redirected. The URI that was used for the initial request has been superseded by the one specified in the Location . Any future requests should be directed to the new URI instead of the original URI. |
302 , 307 | The requested resource has been temporarily redirected. The URI that was used for the initial request is still valid but in this case the client should repeat the request to the URI in the Location header. Clients should continue to use the original URI in future requests. |