Exceptions

class apicore.Http400Exception(description=None, verbose=False)

Create a 400 Bad Request exception.

Parameters:
  • infos (str) – A message describing the error.
  • verbose (boolean) – True to send infos in HTTP response.
class apicore.Http401Exception(description=None, verbose=False)

Create a 401 Unauthorized exception.

Parameters:
  • infos (str) – A message describing the error.
  • verbose (boolean) – True to send infos in HTTP response.
class apicore.Http402Exception(description=None, verbose=False)
class apicore.Http403Exception(description=None, verbose=False)

Create a 403 Forbidden exception.

Parameters:
  • infos (str) – A message describing the error.
  • verbose (boolean) – True to send infos in HTTP response.
class apicore.Http404Exception(description=None, verbose=False)

Create a 404 Not Found exception.

Parameters:
  • infos (str) – A message describing the error.
  • verbose (boolean) – True to send infos in HTTP response.
class apicore.Http406Exception(description=None, verbose=False)

Create a 406 Not Acceptable exception.

Parameters:
  • infos (str) – A message describing the error.
  • verbose (boolean) – True to send infos in HTTP response.
class apicore.Http409Exception(description=None, verbose=False)

Create a 409 Conflict exception.

Parameters:
  • infos (str) – A message describing the error.
  • verbose (boolean) – True to send infos in HTTP response.
class apicore.Http500Exception(description=None, verbose=False)

Create a 500 Internal Server Error exception.

Parameters:
  • infos (str) – A message describing the error.
  • verbose (boolean) – True to send infos in HTTP response.
class apicore.Http501Exception(description=None, verbose=False)

Create a 501 Not Implemented exception.

Parameters:
  • infos (str) – A message describing the error.
  • verbose (boolean) – True to send infos in HTTP response.