mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
add range error handling
This commit is contained in:
parent
7669545d13
commit
2687c78474
@ -24,7 +24,8 @@ export class UrlCheckRouter {
|
||||
(error, response) => {
|
||||
if (
|
||||
response &&
|
||||
response.statusCode.toString().startsWith('2')
|
||||
(response.statusCode.toString().startsWith('2') ||
|
||||
response.statusCode.toString().startsWith('416'))
|
||||
) {
|
||||
const result: any = {}
|
||||
result.found = true
|
||||
|
Loading…
Reference in New Issue
Block a user