handle "PROBLEMS" HAFAS error code

This commit is contained in:
Jannis R 2023-12-07 00:55:35 +01:00
parent b12d235bae
commit f29ced5b2d
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5

View file

@ -109,6 +109,13 @@ const byErrorCode = Object.assign(Object.create(null), {
shouldRetry: true,
},
},
PROBLEMS: {
Error: HafasServerError,
message: 'an unknown problem occured during search',
props: {
shouldRetry: true,
},
},
LOCATION: {
Error: HafasNotFoundError,
message: 'location/stop not found',