Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
mhrimaz committed Nov 27, 2023
1 parent 8810c37 commit 373c236
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app/models/response/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,39 +78,33 @@ class DatabaseConnectionException(Exception):
"""Unable to reach database"""

error_code = 500
pass


class ConceptNotFoundException(Exception):
"""The concept description does not exists."""

error_code = 404
pass


class DuplicateConceptException(Exception):
"""The concept description already exists."""

error_code = 400
pass


class UpdatePayloadIDMismatchException(Exception):
"""The provided base64-url-encoded-id does not match with the provided id in the payload."""

error_code = 400
pass


class InvalidPayloadException(Exception):
"""The provided payload does not comply with AAS specification."""

error_code = 400
pass


class OperationNotAllowedException(Exception):
"""This operation is not allowed."""

error_code = 403
pass

0 comments on commit 373c236

Please sign in to comment.