Updated request handler to return exception http status in response JSON.