github.com/companieshouse/insolvency-api@v0.0.0-20231024103413-440c973d9e9b/service/response_type.go (about) 1 package service 2 3 // ResponseType enumerates the types of authentication supported 4 type ResponseType int 5 6 const ( 7 // InvalidData response 8 InvalidData ResponseType = iota 9 10 // Error response 11 Error 12 13 // Forbidden response 14 Forbidden 15 16 // Success response 17 Success 18 ) 19 20 var vals = [...]string{ 21 "invalid-data", 22 "error", 23 "forbidden", 24 "success", 25 } 26 27 // String representation of `ResponseType` 28 func (a ResponseType) String() string { 29 return vals[a] 30 }