Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ErrorResponse (0.32 sec)

  1. cmd/admin-handlers.go

    				DeploymentID: globalDeploymentID(),
    			},
    		},
    	}
    
    	errResp := func(err error) {
    		errorResponse := getAPIErrorResponse(ctx, toAdminAPIErr(ctx, err), r.URL.String(),
    			w.Header().Get(xhttp.AmzRequestID), w.Header().Get(xhttp.AmzRequestHostID))
    		encodedErrorResponse := encodeResponse(errorResponse)
    		healthInfo.Error = string(encodedErrorResponse)
    		adminLogIf(ctx, enc.Encode(healthInfo))
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 99.7K bytes
    - Viewed (0)
  2. cmd/server_test.go

    	c.Helper()
    	data, err := io.ReadAll(response.Body)
    	c.Assert(err, nil)
    	errorResponse := APIErrorResponse{}
    	err = xml.Unmarshal(data, &errorResponse)
    	c.Assert(err, nil)
    	c.Assert(errorResponse.Code, code)
    	c.Assert(errorResponse.Message, description)
    	c.Assert(response.StatusCode, statusCode)
    }
    
    func runAllTests(suite *TestSuiteCommon, c *check) {
    	suite.SetUpSuite(c)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 15 16:28:02 UTC 2024
    - 116.3K bytes
    - Viewed (0)
Back to top