HttpCode for /auth/email/register #1346
-
Currently the HttpCode is set to @httpcode(HttpStatus.NO_CONTENT) |
Beta Was this translation helpful? Give feedback.
Answered by
Shchepotin
Jan 26, 2024
Replies: 1 comment
-
@LucaAndrei reason why we use HttpStatus.NO_CONTENT is we not returned payload for
For the first scenario, we shouldn't return any payload about a user within the register flow. If you have any thoughts about it, please share we consider it. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Shchepotin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@LucaAndrei reason why we use HttpStatus.NO_CONTENT is we not returned payload for
/auth/email/register
. Why do we not return the payload: because we handle 2 scenarios:For the first scenario, we shouldn't return any payload about a user within the register flow.
If you have any thoughts about it, please share we consider it.