Ticket #1426 (closed defect: invalid)

Opened 3 years ago

Last modified 3 years ago

Validation errors cause 409 not 400 response

Reported by: dread Owned by: dread
Priority: minor Milestone: ckan-sprint-2011-10-28
Component: ckan Keywords:
Cc: Repository: ckan
Theme: none

Description

Validation error is incorrect arguments, so should be a "400 Bad Request" response. "409 Conflict" is for when there is a conflict creating two resources with the same identifier. Yet we get 409 for all validation errors.

Change History

comment:1 Changed 3 years ago by dread

  • Status changed from new to closed
  • Resolution set to invalid

Reading http://www.checkupdown.com/status/E409.html I've changed my mind - 409 is ok for an application level validation error.

Note: See TracTickets for help on using tickets.