Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-3222

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      ...dbname/doc1" -d '

      {"_id":"doc1", "_invalid_key":"jules" }

      '
      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mayyas Mayya Sharipova
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: