Fixed catch compliance error in RESTRequest class