Skip to content

Commit

Permalink
refactor: remove unused error generators
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk committed May 25, 2024
1 parent 27442da commit e43ccd5
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions pydantic_scim2/rfc7644/error.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,3 @@ def serialize_int_to_string(status: int):

detail: Optional[str] = None
"""A detailed human-readable message."""

@classmethod
def not_found(cls, detail: str = "Not found") -> "Error":
return cls(detail=detail, status=404)

@classmethod
def conflict(cls, detail: str = "Conflict") -> "Error":
return cls(detail=detail, status=409)

@classmethod
def unprocessable(cls, detail: str = "Unprocessable Entity") -> "Error":
return cls(detail=detail, status=422)

0 comments on commit e43ccd5

Please sign in to comment.