mirror of
https://github.com/1f349/violet.git
synced 2024-11-13 23:11:36 +00:00
11 lines
190 B
Go
11 lines
190 B
Go
|
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)
|
||
|
}
|