github.com/hoffie/larasync@v0.0.0-20151025221940-0384d2bddcef/api/error.go (about) 1 package api 2 3 // JSONError is the structure which gets send 4 // to the client when a JSON endpoint encounters 5 // an error 6 type JSONError struct { 7 Type string `json:"error_type"` 8 Error string `json:"error"` 9 } 10 11 // ContentIDsJSONError gets returned if there is content 12 // being referenced in an uploaded NIB is missing. 13 type ContentIDsJSONError struct { 14 Type string `json:"error_type"` 15 Error string `json:"error"` 16 MissingContentIDs []string `json:"missing_content_ids"` 17 }