St. Louis Fed | Economic Research | EconDISC® | FRED® | GeoFRED® | ALFRED® | CASSIDI® | FRASER® | Liber8® | APIs | Fed System
Economic Research from the Federal Reserve Bank of St. Louis
  Home | API Keys | FRED® API
Contact Us | Terms of Use | Privacy | Legal  

Errors

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:

Request

http://api.stlouisfed.org/fred/series/updates

Response

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: