Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F10433551
errors.go
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
359 B
Subscribers
None
errors.go
View Options
package
impart
import
(
"net/http"
)
// HTTPError holds an HTTP status code and an error message.
type
HTTPError
struct
{
Status
int
Message
string
}
// Error displays the HTTPError's error message and satisfies the error
// interface.
func
(
h
HTTPError
)
Error
()
string
{
if
h
.
Message
==
""
{
return
http
.
StatusText
(
h
.
Status
)
}
return
h
.
Message
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 20, 4:50 AM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3137647
Attached To
rI impart
Event Timeline
Log In to Comment