Only convert to RestError when the server returns 500