Skip to content

400 Bad Request and 422 Unprocessable Entity shows two different messages shows up when some validations are missing. #30946

Closed

Description

@riyazuddinsyed

Describe the bug in the current situation
When in the Email field, there are trailing white spaces, then the request shows 400 Bad Request as a response
And in the same way, if the format of the email isn't correct, then a 422 Unprocessable Entity message shows up.

When an invalid email is present, then the error is as follows
Screen Shot 2025-10-02 at 12.56.19 PM.png

When the email format isn't correct, then
Screen Shot 2025-10-02 at 12.55.39 PM.png

Activity

  1. added
    bug
    Entities Team
    on Oct 2, 2025
  2. severinbeauvais commented on Oct 27, 2025

    @severinbeauvais
    Collaborator

    Analyzed and reviewed with Olga Oct 24, 2025:
    "I think this has no impact. The difference may be because the first is a schema error and the second is an API validation error." => do long term

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Entities TeamPriority3bugtechdebt

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions