|
Economic Research from the Federal Reserve Bank of St. Louis |
If an error occurs, the web service will return an HTTP response with the error status code and an XML body containing the error. For example:
http://api.stlouisfed.org/fred/series/updates
HTTP/1.x 400 Bad Request Content-Type: text/xml;charset=utf-8 ... <error code="400" message="Bad Request. Variable api_key has not been set."/>
The message attribute of the error tag contains a description of the error. All errors use standard HTTP status codes. There are no custom error codes. The following HTTP status code may be returned: