Project

Profile

Help

Issue #5191

Change ValidationError raised from 400 to 409

Added by CodeHeeler 3 months ago.

Status:
NEW
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Severity:
2. Medium
Version - Python:
Platform Release:
Blocks Release:
Target Release - Python:
OS:
Backwards Incompatible:
No
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:

Description

In PythonOneShotUploadViewSet, if the file already exists, the validation checking for the filename reports back that "This field must be unique." and currently raises a ValidationError that yields a status_code of 400, Bad Request.

This would more accurately be a 409 error, Conflict.

Please register to edit this issue

Also available in: Atom PDF