comparison sat/plugins/plugin_comp_ap_gateway/http_server.py @ 3802:983df907d456

component AP gateway: set POST default response code to 202 (accepted)
author Goffi <goffi@goffi.org>
date Fri, 17 Jun 2022 14:15:23 +0200
parents b5c9021020df
children 36b167ddbfca
comparison
equal deleted inserted replaced
3801:6952a002abc7 3802:983df907d456
646 f"invalid signature: {e}" 646 f"invalid signature: {e}"
647 ) 647 )
648 request.finish() 648 request.finish()
649 return 649 return
650 650
651 # default response code, may be changed, e.g. in case of exception
652 self.responseCode(request, http.ACCEPTED)
651 try: 653 try:
652 return await self.APRequest(request, signing_actor) 654 return await self.APRequest(request, signing_actor)
653 except Exception as e: 655 except Exception as e:
654 self._onRequestError(failure.Failure(e), request) 656 self._onRequestError(failure.Failure(e), request)
655 657