mirror of
https://gitee.com/sjqzhang/go-fastdfs.git
synced 2024-12-02 03:08:11 +08:00
15 lines
199 B
Go
15 lines
199 B
Go
package server
|
|
|
|
type httpError struct {
|
|
error
|
|
statusCode int
|
|
}
|
|
|
|
func (err httpError) StatusCode() int {
|
|
return err.statusCode
|
|
}
|
|
|
|
func (err httpError) Body() []byte {
|
|
return []byte(err.Error())
|
|
}
|