This repository has been archived on 2024-04-07. You can view files and clone it, but cannot push or open issues or pull requests.
|
package utils
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
)
|
|
|
|
func RespondHttpStatus(rw http.ResponseWriter, status int) {
|
|
http.Error(rw, fmt.Sprintf("%d %s\n", status, http.StatusText(status)), status)
|
|
}
|