mirror of
https://github.com/twofas/2fas-server.git
synced 2024-12-12 04:00:15 +01:00
13 lines
227 B
Go
13 lines
227 B
Go
|
package http
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
type ErrorResponse struct {
|
||
|
Status int
|
||
|
Message string `json:"message"`
|
||
|
}
|
||
|
|
||
|
func (error *ErrorResponse) Error() string {
|
||
|
return fmt.Sprintf("Status: %d Message: %s", error.Status, error.Message)
|
||
|
}
|