Custom HTTP status code in Error Handling #2568
Closed
saeed-rostami
started this conversation in
General
Replies: 2 comments
-
A similar question was asked in #1694, and i believe the answer i gave with #1694 (comment) also applies here. |
Beta Was this translation helpful? Give feedback.
0 replies
-
ok thanks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hello
I have a CustomException and use it like
throw new CustomException("Error Message" , 422);
how can i modify the http status code for example 422 ?
it returns 200 always
Beta Was this translation helpful? Give feedback.
All reactions