Project

Profile

Help

Task #2634

closed

Add information about API error reporting to dev guide

Added by semyers about 7 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Documentation
Sprint:
Quarter:

Description

Django Rest Framework has some helpful error handling features, effectively response middleware, that can be used within Pulp to help us implement a single mechanism for handling exceptions and returning meaningful errors to users when raising Exceptions, or when unhandled exceptions require a 500 response.

We should explore DRF's options for this and document a plan for handling exceptions in the API to prevent having multiple error-handling implementations in the project.

Also available in: Atom PDF