API - Trying to fetch an already deleted Audit Template with 500 as status code
Bug #1531877 reported by
Vincent Françoise
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
watcher |
Fix Released
|
Medium
|
Vincent Françoise |
Bug Description
When trying to retrieve an Audit Template which either does not exist at all or got previously deleted, we get a misleading status code. As the resource dos not exist, one would expect to have a 404 status code instead of a 500 status code as it is currently the case.
So the objective is to return a 404 NOT FOUND in this scenario. Also, the correct/specific exception should be raised, i.e. AuditTemplateNo
tags: | added: api |
Changed in watcher: | |
status: | New → Confirmed |
Changed in watcher: | |
importance: | Undecided → Medium |
Changed in watcher: | |
assignee: | nobody → Vincent Françoise (vincent-francoise) |
To post a comment you must log in.
Same bug as https:/ /bugs.launchpad .net/watcher/ +bug/1533217?