Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F995411
response.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
494 B
Referenced Files
None
Subscribers
None
response.js
View Options
"use strict"
;
"use strict"
;
function
Response
(
data
,
is_error
,
type
,
status_message
)
{
this
.
status
=
is_error
?
"error"
:
"success"
;
this
.
type
=
type
||
"response"
;
this
.
status_message
=
status_message
||
"ok"
;
this
.
data
=
data
||
{};
}
Response
.
fromError
=
function
(
sealious_error
)
{
return
{
data
:
sealious_error
.
data
||
{},
is_error
:
true
,
type
:
sealious_error
.
type
,
status_message
:
sealious_error
.
message
,
message
:
sealious_error
.
message
,
};
};
module
.
exports
=
Response
;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 03:42 (17 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
556805
Default Alt Text
response.js (494 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment