You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A successful request will be prompted with either `200 - Success`or `204 - No Content`.
2748
+
Next to common HTTP status codes, the Eaternity API uses a set of custom status codes to indicate the success or failure of a request. The following table lists the used status codes and their meanings:
2749
2749
2750
-
Sadly, sometimes requests to the API are not successful. Failures can occur for a wide range ofreasons. In all cases, the API returns an HTTP Status Code that indicates the nature of the failure (below), with a response body inJSON format containing additional information.
2751
2750
2752
-
*200`Success`- If a resource was requested, it will be available at the top level of the response body.
2751
+
*200`OK`- If a resource was requested, it will be available at the top level of the response body.
2753
2752
*201`Created`- The request was successful and a resource was created. TheLocation Header field indicates the URI the resource can be found.
2754
2753
*204`No Content`- The request was successful and the body intentionally contains no data.
2755
2754
2756
2755
*400`Bad request`- This occurs when the request was not sent according to the documentation. Can be either the JSON format or the content. Check the documentation and the syntax of your request and try again.
2757
-
*401`No authorization`-A valid API key was not provided with the request, so the API could not associate a client with the request.
2756
+
*401`Unauthorized`-A valid API key was not provided with the request, so the API could not associate a client with the request.
2758
2757
*403`Forbidden`- The Kitchen is not authorized to calculate environmental values ofrecipes. Only users that pay for the "Eaternity License" are allowed to doso. Please contact Eaternity to get an up-to-date pricing.
2759
-
*404`Not found`- Either the request method and path supplied do not specify a known action in the API, or the object specified by the request does not exist.
2760
-
*405`Method not allowed`- When the resource exists but the HTTP method verb is not allowed on this resource.
2761
-
*422`Request Validation Error`- When the request is not valid against the schema we ask. For example you send an integer where a string was expected.
2758
+
*404`Not Found`- Either the request method and path supplied do not specify a known action in the API, or the object specified by the request does not exist.
2759
+
*405`Method Not Allowed`- When the resource exists but the HTTP method verb is not allowed on this resource.
2760
+
*422`Unprocessable Content`- When the request is not valid against the schema we ask. For example you send an integer where a string was expected.
2762
2761
2763
-
*500`Server error`- Just try again or contact our tech support.
2762
+
*500`Internal Server Error`- Unexpected error. If you receive this error, please try again later. If the error persists, please contact Eaternity support.
2763
+
*502`Bad Gateway`- The request could not be completed because the Eaternity API is currently not responding to the Content Delivery Network. Pleasetry again later.
2764
2764
2765
-
*601`Manual matching missing`- An ingredient was requested, whose id is not yet manually matched into the Eaternity Database. Retry once a day.
2766
-
*602`No automatic match found`- At least one ingredient name could not get automatically matched into the Eaternity Database. Retry once a day or trywith a different ingredient name.
2767
-
*610`Missing required property`-A required resource property was not given in the request. Please provide the required field.
2768
-
*611`Wrong property value`-A resource property was not provided according to the documentation. Either the given format is wrong or the value does not match to the given options. Usually not dependent on the implementation but on the user input.
2765
+
*602`Matching missing`- For at least one ingredient name no matching rules to the Eaternity Database were found. Retry once a day or trywith a different ingredient name.
2766
+
*611`Kitchen does not exist`- The kitchen with the given id does not exist.
2769
2767
*612`Referenced sub-recipe is not in the database.`-A referenced recipe was not provided inthis or a previous request. Please provide the required recipe in advance.
2770
2768
*670`At least one (sub-) recipe has no ingredients.`- “Something of nothing” does not work. You referenced a positive quantity of a sub-recipe that did have any quantitity itself.
2771
-
2769
+
*673`Amount Estimation Failed`- For at least one ingredient, amount estimation failed. This is caused by inconclusive nutrient values or missing ingredient information. Please check the ingredient.
2770
+
*674`Ingredient Splitter Failed`- The ingredient splitter could not split the ingredient declaration into ingredients. This is caused by inconclusive ingredient information. Please check the ingredient.
2771
+
*675`Ingredient Unit Unknown`- For at least one ingredient, the unit is unknown. Please check the ingredient units.
2772
+
*678`CO₂ calculation failed`- The CO₂ calculation failed. An unknown issue occurred. Pleasetry again later or contact Eaternity support.
2773
+
*679`Vita Score calculation not possible`- The Vita Score calculation failed. An unknown issue occurred. Pleasetry again later or contact Eaternity support.
0 commit comments