2 messages · Page 1 of 1 (latest)
Hello. I have implemented in my Django Rest Framework project a functionality of an endpoint with query params as mandatory part (?airline__name=Some name)
And now I implemented also error handler for case when query params were not inputed. What kind of status code should I use in this case?
https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
400 should be fine.
Bad request: The server cannot or will not process the request due to an apparent client error (e.g., malformed request syntax, size too large, invalid request message framing, or deceptive request routing).