Skip to content

WireCloud should not respond with an error 500 to SuspiciousOperation errors #143

@aarranz

Description

@aarranz

WireCloud should not respond with a 500 error code response when a suspicious operation exception is raised (e.g. when a requests with an invalid HOST header arrives the service). Instead it should return a 400 error code response. This fix should be available when using Django 1.7-1.9 (Django 1.6 automatically uses a 500 error response, so we cannot fix it).

Also would be great to document how to silence a particular type of SuspiciousOperation. See the Django documentation for more info.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions