Server returns code 500 instead of 404 for a GET to a URL for a version that does not exist.

Description

A request on the REST API for a resource that does not exist should always return a 404 status code in the response, but when a version does not exist the server returns status code 500.

We should ensure that 404 is returned for:

  • GET requests for any resource that does not exist

  • PUT or POST for a sub-resource of any resource that does not exist

Environment

None

Assignee

Unassigned

Reporter

David Mason

Labels

Tested Version/s

None

Components

Priority

unspecified
Configure