REST API returns a 500 status code when a client sends and unsupported HTTP method to an existing endpoint. An issues has been fixed where the REST API returned a 500 status code when a client sent an unsupported HTTP method to an existing endpoint. Now it returns the status code 405.