popular status codes

This commit is contained in:
eyalpost 2017-05-12 09:57:56 +03:00
parent 0ac2e47162
commit 1004678005
1 changed files with 7 additions and 0 deletions

View File

@ -3,9 +3,16 @@ package response
import (
"strconv"
"net/http"
beecontext "github.com/astaxie/beego/context"
)
const (
NotFound StatusCode = http.StatusNotFound
BadRequest StatusCode = http.StatusBadRequest
)
// Renderer defines an http response renderer
type Renderer interface {
Render(ctx *beecontext.Context)