Bug 680503 - RFE: Unified API error message format
Summary: RFE: Unified API error message format
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Sayli Karmarkar
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: 673021 680520 684061
TreeView+ depends on / blocked
 
Reported: 2011-02-25 18:18 UTC by Mike McCune
Modified: 2015-03-23 01:10 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
: 680520 (view as bug list)
Environment:
Last Closed: 2011-08-16 12:10:47 UTC
Embargoed:


Attachments (Terms of Use)

Description Mike McCune 2011-02-25 18:18:32 UTC
Requesting errors from Pulp's REST API be returned in JSON format in a standardized manner.  Most expected errors return a body message:

$ curl -k -u admin:admin https://localhost/pulp/api/repositories/kgems-1234777/sync/ed50d051-4108-11e0-89b7-00219b3b5088/

"No sync with id ed50d051-4108-11e0-89b7-00219b3b5088 found"

but ideally if there are expected errors we could use a JSON message format:

    {error-name: "sync-not-found", message: "No sync with id ed50d051-4108-11e0-89b7-00219b3b5088 found"}

or something similar.  This would make handing exceptions much easier from a caller's perspective.

Comment 1 Preethi Thomas 2011-08-16 12:10:47 UTC
Closing with Community Release 15

pulp-0.0.223-4.

Comment 2 Preethi Thomas 2011-08-16 12:22:36 UTC
Closing with Community Release 15

pulp-0.0.223-4.


Note You need to log in before you can comment on or make changes to this bug.