Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for writeErrorResponse (0.17 sec)

  1. cmd/api-response.go

    	writeResponse(w, http.StatusSeeOther, nil, mimeNone)
    }
    
    func writeSuccessResponseHeadersOnly(w http.ResponseWriter) {
    	writeResponse(w, http.StatusOK, nil, mimeNone)
    }
    
    // writeErrorResponse writes error headers
    func writeErrorResponse(ctx context.Context, w http.ResponseWriter, err APIError, reqURL *url.URL) {
    	switch err.HTTPStatusCode {
    	case http.StatusServiceUnavailable, http.StatusTooManyRequests:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 19:27:06 UTC 2024
    - 33.4K bytes
    - Viewed (0)
Back to top