add request_id to json payload when encountering an internal sinatra error