Zum Hauptinhalt springen

status_http_codes

HTTP Status Codes

2xx Success

200okmost basic sucess confirmation
201createdcreated user, shopingcart....API-calls
204no contentall went well but there is nothing to returnAPI delete request (ex a user)

3xx Redirection

301moved permanentlywebsite moved to new ip etc
304not modifiedhas to do with cachingAPI-call answer to question: "has this data changed from yday"

4xx Client Error

400bad requestclient sent to little/wrong request
401unauthorizedtrying to access something without required authenticationsent no API-key
403forbiddenauthentication sent is lackingAPI-key used lacks admin
404not foundtrying to acces something that is not thereex. trying to access some API where there is none

5xx Server Error

500internal server errorsomething broke on the serverex. database is down