Skip to content

Returning HTTP response code 200 for bad requests #4

@stevenkissack

Description

@stevenkissack

Hi!

I've noticed you return 200 status codes when the request is missing required parameters, maybe this should be changed to 400 to signal a bad request?

Example:
https://www.omdbapi.com/?apikey=xxx&foo=bar
Response:
[200] {"Response":"False","Error":"Something went wrong."}

Expected Response:
[400] {"Response":"False","Error":"Missing required field."}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions