Clean up spec before changing it.
PLATFORM-922

Catch url decode errors and wrap them on a BadRequest (400) exception.
PLATFORM-923

Return a response to the client if an exception is caught in
the upstream handler.