Change HTTP status codes for Poseidon in accordance with recent changes.

See https://github.com/openHPI/poseidon/pull/159
This commit is contained in:
Sebastian Serth
2022-08-31 11:07:44 +02:00
committed by Sebastian Serth
parent 5f0229029c
commit ba821bd18b
2 changed files with 9 additions and 9 deletions

View File

@ -209,7 +209,7 @@ class Runner::Strategy::Poseidon < Runner::Strategy
raise Runner::Error::BadRequest.new(response_body[:message])
when 401
raise Runner::Error::Unauthorized.new('Authentication with Poseidon failed')
when 404
when 410
raise Runner::Error::RunnerNotFound.new
when 500
response_body = parse response