Error Handling

Gewijzigd op Ma, 23 Nov om 11:49 PM

Een HTTP-response met een statuscode in de 2xx-reeks, doorgaans 200 OK, geeft aan dat de API-aanroep succesvol is uitgevoerd.


Bij een mislukte API-aanroep bevat de responsebody een foutmelding in het volgende formaat:


JSON

{

   "code": "InvalidInput",

   "FriendlyDescription": "Invalid input provided.",

   "TechnicalDescription": "Invalid data",

   "AdditionalInformation": {

      "Name": [

         "Product name is not provided"

      ]

   }

}
JavaScript

Error response fields

Hieronder vind je een overzicht van alle velden in de response, inclusief een uitgebreide beschrijving.


FieldDataTypeDescription
codestringThe main error code, gives the generic error that happened.
Possible values:
- InvalidInput
- NotFound
- ProcessingError
FriendlyDescriptionstringA friendly (localized) error description, which could be shown to the user.
TechnicalDescriptionstringA technical error description (always in English).
AdditionalInformationDictionary<string, object>This can contain additional information about the error.
Example: which fields in the model are not correct and why.

Was dit artikel nuttig?

Dat is fantastisch!

Hartelijk dank voor uw beoordeling

Sorry dat we u niet konden helpen

Hartelijk dank voor uw beoordeling

Laat ons weten hoe we dit artikel kunnen verbeteren!

Selecteer tenminste een van de redenen
CAPTCHA-verificatie is vereist.

Feedback verzonden

We stellen uw moeite op prijs en zullen proberen het artikel te verbeteren