UNPKG
@allthings/js-sdk
Version:
latest (11.0.2)
11.0.2
11.0.1
JavaScript SDK for communication with the Allthings API
www.allthings.me
qipp/allthings-js-sdk
@allthings/js-sdk
/
interceptor
/
error.js
13 lines
(11 loc)
•
225 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
interceptor
from
'rest/interceptor'
export
default
interceptor
({
error
:
function
(
response
) {
return
{
error
: {
message
: response.
entity
||
''
,
status
: response.
status
} } } })