Wrong status code
When I want to create a repository with a name which is already used for another repository, it returns status code 400 - Bad Request. According to this topic HTTP response code for POST when resource already exists I would suggest use 409 - Conflict.
#3 Updated by vdusek over 2 years ago
According to the django-rest-framework issue tracker on Github (4509, 5385, ...) it looks like we're not the first to deal with this problem. If I understand it right, collaborators don't have any interest in tackling it themselves or their point of view is that 400 is OK for uniqueness constraints. So I guess we'll have to deal with it by implementing our own subclass of ApiException.
Please register to edit this issue