company logo

HTTPServices :: GetHTTPError - HTTP error codes

Internal error codes are converted into HTTP error codes. Following error codes are created:

  • 200 - Ok
  • 201 - Created (PUT or PATCH when a new instance has been created)
  • 204 - No content (request is ok but no content returned - PUT,PATCH, DELETE)
  • 400 - Bad request in passed body
  • 401 - Unauthorized (user or password invalid)
  • 403 - Forbidden (user accepted but not authorized for requested operation)
  • 404 - not found (url is syntactically incorrect or not a valid database path)
  • 405 - Method not allowed (request type not supported by application)
  • 409 - operation refused (instance not located, duplicate key etc.)
  • 500 - internal server error


Return value:  Return code from main function ( int  )

Implementation details