mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 08:49:58 +00:00
Handle HTTP status 'not available'
This commit is contained in:
parent
61dc053701
commit
6c7b7137a8
1 changed files with 2 additions and 2 deletions
|
@ -194,7 +194,7 @@ public final class ParserUtils
|
|||
}
|
||||
}
|
||||
else if (responseCode == HttpURLConnection.HTTP_FORBIDDEN || responseCode == HttpURLConnection.HTTP_BAD_REQUEST
|
||||
|| responseCode == HttpURLConnection.HTTP_NOT_ACCEPTABLE)
|
||||
|| responseCode == HttpURLConnection.HTTP_NOT_ACCEPTABLE || responseCode == HttpURLConnection.HTTP_UNAVAILABLE)
|
||||
{
|
||||
throw new BlockedException(url);
|
||||
}
|
||||
|
@ -353,7 +353,7 @@ public final class ParserUtils
|
|||
}
|
||||
}
|
||||
else if (responseCode == HttpURLConnection.HTTP_FORBIDDEN || responseCode == HttpURLConnection.HTTP_BAD_REQUEST
|
||||
|| responseCode == HttpURLConnection.HTTP_NOT_ACCEPTABLE)
|
||||
|| responseCode == HttpURLConnection.HTTP_NOT_ACCEPTABLE || responseCode == HttpURLConnection.HTTP_UNAVAILABLE)
|
||||
{
|
||||
throw new BlockedException(url);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue