Skip to content

refactor: standardize errors

Baptiste Rousseau requested to merge standard_errors into dev
  • Change errors format for several endpoints:
    • Node
    • Member
    • NodeType
  • Change errors format for API functions:
    • ViewSets
    • Serializers
    • Mixin
    • Filters
    • Models
  • Fix some functionnal (Node, Member and NodeType) and unit test (all tests must pass)
  • Create additional exception classes to handle error types:
    • ValidationException
    • SaveException
    • UnauthorizedException
    • ForbiddenException
    • ConnectorException
    • ObjectNotFoundException
    • MethodNotAllowedException
    • InternalServerErrorException
    • ServiceUnavailableException
    • GatewayTimeoutException
  • Modified the custom error handler to handle rest framework exceptions
    • MethodNotAllowed
    • NotAuthenticated
    • PermissionDenied
Edited by Baptiste Rousseau

Merge request reports