Error response shape shared by multiple operations.
Status vs body:
{ error: ... }
success: false
status
DUPLICATE_USER
status: 409
UNAUTHORIZED
SERVER_ERROR
Optional
Error response shape shared by multiple operations.
Status vs body:
{ error: ... }withoutsuccess: false.statusfield in the JSON body (e.g.DUPLICATE_USERusesstatus: 409) without necessarily setting the HTTP status code.UNAUTHORIZEDuses HTTP 401;SERVER_ERRORmay use HTTP 500).