1
0
mirror of synced 2025-02-24 16:03:14 +03:00
2018-08-23 15:52:32 +03:00

16 lines
237 B
Go

package main
import (
"net/http"
)
type ErrorResponse struct {
Error string `json:"error"`
}
func BadRequest(error string) (int, interface{}) {
return http.StatusBadRequest, ErrorResponse{
Error: getLocalizedMessage(error),
}
}