Functionin fsthttpcompute-sdk-go v1.11.0View source
func Error(w ResponseWriter, error string, code int)

Error replies to the request with the specified error message and HTTP code. It does not otherwise end the request; the caller should ensure no further writes are done to w. The error message should be plain text.

Parameters

w: ResponseWriter
error: string
code: int