Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions json_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,6 @@ type Error struct {
Message string `json:"message,omitempty"`
}

var (
// JSONErrorUnauthorized is a generic 401 unauthorized response
JSONErrorUnauthorized = &Error{
Code: http.StatusUnauthorized,
Message: "Unauthorized",
}
)

// Response is the top level container of all of our REST API responses.
type Response struct {
Data interface{} `json:"data,omitempty"`
Expand Down