Closed sukui24 closed 1 week ago
Add general ApiError with status code.
ApiError
When ApiError throwed it should be checked by controller, if it's code 40x, then it's UserError. If code is unknown or 50x, it's should be ServerError and it should be logged in file and handled as well.
40x
UserError
ServerError
Should be done in #38
Done in #38
Add general
ApiError
with status code.When
ApiError
throwed it should be checked by controller, if it's code40x
, then it'sUserError
. If code is unknown or 50x, it's should beServerError
and it should be logged in file and handled as well.