rcrowley / go-tigertonic

A Go framework for building JSON web services inspired by Dropwizard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HTTP response codes for errors

rcrowley opened this issue · comments

type HTTPEquivError interface {
    error
    Status() int
}

Use errors like this to respond with something sensible at the HTTP layer. We're doing this internally at Betable and it's nice.