| commit | 262944f0244c86c5fdb794ebe538fb916ff5415c | [log] [tgz] |
|---|---|---|
| author | Mayya Sharipova <mayyas@ca.ibm.com> | Thu Nov 03 19:46:05 2016 -0400 |
| committer | Mayya Sharipova <mayyas@ca.ibm.com> | Thu Nov 03 19:46:05 2016 -0400 |
| tree | be5ec4f1150ff9f687980ee8431e1e7993895ee7 | |
| parent | 64235ef3b40be067d8304ee97e23eae0b446337c [diff] |
HTTP code 500 instead of 400 for invalid key during document creation
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