Skip to content

Commit

Permalink
Use suggested http status codes
Browse files Browse the repository at this point in the history
  • Loading branch information
glatterf42 committed Sep 30, 2024
1 parent a468267 commit 34c337f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ixmp4/core/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,13 @@ class InvalidCredentials(IxmpError):


class OptimizationDataValidationError(IxmpError):
http_status_code = 431
http_status_code = 422
http_error_name = "optimization_data_validation_error"


# == Optimization.Table ==


class OptimizationTableUsageError(IxmpError):
http_status_code = 432
http_status_code = 422
http_error_name = "optimization_table_usage_error"

0 comments on commit 34c337f

Please sign in to comment.