mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 13:10:54 +00:00
popular status codes
This commit is contained in:
parent
0ac2e47162
commit
1004678005
@ -3,9 +3,16 @@ package response
|
|||||||
import (
|
import (
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
|
"net/http"
|
||||||
|
|
||||||
beecontext "github.com/astaxie/beego/context"
|
beecontext "github.com/astaxie/beego/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
NotFound StatusCode = http.StatusNotFound
|
||||||
|
BadRequest StatusCode = http.StatusBadRequest
|
||||||
|
)
|
||||||
|
|
||||||
// Renderer defines an http response renderer
|
// Renderer defines an http response renderer
|
||||||
type Renderer interface {
|
type Renderer interface {
|
||||||
Render(ctx *beecontext.Context)
|
Render(ctx *beecontext.Context)
|
||||||
|
Loading…
Reference in New Issue
Block a user