Skip to content

/auth/register error response #6

@mmahmoodictbd

Description

@mmahmoodictbd

When email already exists in the system, API throws following with HTTP status code 500:
{ "email": [ "has already been taken" ] }

Response code should be 400 bad request.
Simplified API response would help mobile app. Proposed format:
{ "validationMessage": "Email already exist, try login." }

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions