mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
14 lines
203 B
Go
14 lines
203 B
Go
|
package http
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
)
|
||
|
|
||
|
func HandleError(w http.ResponseWriter, message string, code int) {
|
||
|
errJson := &DefaultErrorJson{
|
||
|
Message: message,
|
||
|
Code: code,
|
||
|
}
|
||
|
WriteError(w, errJson)
|
||
|
}
|