Change HTTP status codes for Poseidon in accordance with recent changes.
See https://github.com/openHPI/poseidon/pull/159
This commit is contained in:

committed by
Sebastian Serth

parent
5f0229029c
commit
ba821bd18b
@ -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
|
||||
|
Reference in New Issue
Block a user