From 98ee59426ce5b96e98eae28b448a7a533e3dba68 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 16 Jul 2022 07:52:06 +0200 Subject: indicate backend errors via HTTP 502 --- bin/nvm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/nvm b/bin/nvm index 44835fb..8220825 100755 --- a/bin/nvm +++ b/bin/nvm @@ -487,7 +487,7 @@ async def show_trip_info(request, trip_id=None): version=nvm_version, ), headers=headers, - status=500, + status=502, ) tripinfo = Trip(tripinfo) @@ -621,7 +621,7 @@ async def redirect_to_departure_board(request): version=nvm_version, ), headers=headers, - status=500, + status=502, ) stops = await response.json() @@ -666,7 +666,7 @@ async def ajax_geolocation(request): } ), headers=ajax_headers, - status=500, + status=502, ) departures = await response.json() return web.Response( -- cgit v1.2.3