TOP
SSV Software Systems Register  Register
Log in to check your private messages  Log in to check your private messages
Startseite FAQ Search Mitglieder Profile  Log in 
SSV Support-Forum
HTTP-Status- und Fehlercodes …

 
Post new topic   Reply to topic    SSV-Forum Forum Index >>> Real Time Data Channels (RTDC)
<<< Previous topic - Next topic >>>  
Display posts from previous:   
Author Message
kdw



Joined: 05 May 2006
Posts: 1460

PostPosted: 19.12.2014, 08:51    Post subject: HTTP-Status- und Fehlercodes … Reply with quote

Hallo Forum.

Jeder RTDC-REST-API-Request liefert über die Response einen HTTP-Status- bzw. Fehlercode zurück. Aus diesem Code geht hervor, ob die gewünschte Operation vom Server erfolgreich ausgeführt werden konnte oder nicht.

Code:
Status/Fehlercode | Bedeutung
------------------+-----------------------------------------------
200               | OK – Die gewünschte Aktion wurde ausgeführt
400               | Fehler - Bad Request
401               | Fehler – Unauthorized
404               | Fehler - Not found
405               | Fehler - Method Not Allowed
500               | Fehler - Internal Server Error


Zusammen mit den HTTP-Status- und Fehlercodes wird in der Response auch ein JSON-Objekt mit weiteren Informationen an den Client geschickt. So kann der Fehlercode 401 z. B. zusammen mit dem folgenden JSON-Objekt verschickt werden:

Code:
{"status":{"code":1,"info":"account disabled"}}


Gruß KDW
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SSV-Forum Forum Index >>> Real Time Data Channels (RTDC) All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

SSV Software Systems GmbH

Dünenweg 5
30419 Hannover

Fon: +49(0)511  ·  40 000-0
Fax: +49(0)511  ·  40 000-40

sales@ssv-embedded.de


Impressum    ·    Datenschutz    ·    AGB

© 2023 SSV SOFTWARE SYSTEMS GmbH. Alle Rechte vorbehalten.

ISO 9001:2015