Ghost
New
flaxo
/
ghost
public
forked from
ghost/ghost
Source code of Ghost - On Ghost
Star
0
Fork
0
Code
Issues
0
Pull requests
0
a010d71
34
branches
Go to file
t
Code
ghost
apps
api
src
lib
s3
s3.errors.ts
setup zoekt for code search
4399c07
18 days ago
8 lines · 266 B
1
export
function
statusOf
(
error
:
unknown
)
{
2
return
(
error
as
3
?.
httpStatusCode
;
4
}
5
6
export
function
isNotFound
(
error
7
return
statusOf
(
error
8
}
{
$metadata
?
:
{
httpStatusCode
?
:
number
}
}
)
?.
$metadata
:
unknown
)
{
)
===
404
||
(
error
as
Error
)
?.
name
===
'
NoSuchKey
'
;