FatSecret Platform API Documentation
Error Codes
Every method call to the FatSecret API may return an error instead of the expected results due to bugs in your application's code or FatSecret's servers. Here you will find all of the potential errors that could be returned.
<?xml version="1.0" encoding="utf-8"?>
<error xmlns="http://platform.fatsecret.com/api/1.0/"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation=" http://platform.fatsecret.com/api/1.0/http://platform.fatsecret.com/api/1.0/fatsecret.xsd">
<code>4</code>
<message>Invalid signature method: oauth_signature_method 'PLAINTEXT'</message>
</error>
{
"error": {
"code": "4",
"message": "Invalid signature method: oauth_signature_method 'PLAINTEXT'"
}
}
Error Codes
CODE | TYPE | DESCRIPTION |
---|---|---|
1 | General | An unknown error occurred: '<details>' |
2 | OAuth 1.0 | Missing required oauth parameter: '<details>' |
3 | OAuth 1.0 | Unsupported oauth parameter: '<details>' |
4 | OAuth 1.0 | Invalid signature method: '<details>' |
5 | OAuth 1.0 | Invalid consumer key: '<details>' |
6 | OAuth 1.0 | Invalid/expired timestamp: '<details>' |
7 | OAuth 1.0 | Invalid/used nonce: '<details>' |
8 | OAuth 1.0 | Invalid signature: '<details>' |
9 | OAuth 1.0 | Invalid access token: '<details>' |
10 | General | Unknown method: '<details>' |
11 | General | Application request limit reached: '<details>' |
12 | General | User is performing too many actions: '<details>' |
13 | OAuth 2.0 | Invalid token: '<details>' |
14 | OAuth 2.0 | Missing scope: '<details>' |
20 | General | System temporarily unavailable: '<details>' |
21 | General | Invalid IP address detected: '<details>' |
22 | General | Invalid request: '<details>' |
101 | Parameter | Missing required parameter: '<details>' |
102 | Parameter | Invalid integer value: '<details>' |
103 | Parameter | Invalid double value: '<details>' |
104 | Parameter | Invalid decimal value: '<details>' |
105 | Parameter | Invalid long value: '<details>' |
106 | Parameter | Invalid ID: '<details>' |
107 | Parameter | Value out of range: '<details>' |
108 | Parameter | Invalid Type: '<details>' |
201 | Application | Activity not found: '<details>' |
202 | Application | Shift To and Shift From must be different: '<details>' |
203 | Application | Too many minutes: '<details>' |
204 | Application | Date selected does not have any activity to default: '<details>' |
205 | Application | Date must be within 2 days from today: '<details>' |
206 | Application | Cannot update weight for an earlier date: '<details>' |
207 | Application | Date selected does not have any food entries to copy: '<details>' |
208 | Application | Invalid region: '<details>' |
209 | Application | Activity cannot be modified: '<details>' |
210 | Application | User cannot have templates set: '<details>' |