Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

HTTP code 500 instead of 400 for invalid key during document creation #149

Merged
merged 1 commit into from Nov 4, 2016

Conversation

mayya-sharipova
Copy link

The wrong status code is returned when creating or updating a document
with an invalid key.
Returns:
{u'reason': u'Bad special document member: _invalid_key', u'error':
u'doc_validation'}
HTTPError: 500 Server Error: Internal Server Error
Expected: 400 Bad Request error

COUCHDB-3222

The wrong status code is returned when creating or updating a document
with an invalid key.
Returns:
{u'reason': u'Bad special document member: _invalid_key', u'error':
u'doc_validation'}
HTTPError: 500 Server Error: Internal Server Error
Expected: 400 Bad Request error

COUCHDB-3222
@rnewson
Copy link
Member

rnewson commented Nov 4, 2016

+1

@asfgit asfgit merged commit 262944f into apache:master Nov 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants