Move raise_error to http so it can be used in launch_server_v1
Use raise_error_on_code in launch server worker