Skip to content

Framework returns wrong response code (400) #4509

Closed
@cochiseruhulessin

Description

@cochiseruhulessin

During certain error conditions, the django-rest-framework returns a wrong response code (400).

As per RFC 2616:

The request could not be understood by the server due to malformed syntax.
The client SHOULD NOT repeat the request without modifications.

This means that the syntax of the request entity is malformed, and has nothing to do with the request payload (django-rest-framework deals only with request payloads, not with parsing of the byte-stream producing the request).

Is there any way to override this behavior to create standard-conforming HTTP APIs using the django-rest-framework?

Metadata

Metadata

Assignees

No one assigned

    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