Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for httpStatusCode (0.09 sec)

  1. cmd/object-handlers.go

    				BucketName: bucket,
    				Key:        object,
    				Resource:   r.URL.Path,
    				RequestID:  w.Header().Get(xhttp.AmzRequestID),
    				HostID:     globalDeploymentID(),
    			})
    			writeResponse(w, serr.HTTPStatusCode(), encodedErrorResponse, mimeXML)
    		} else {
    			writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		}
    		return
    	}
    	defer s3Select.Close()
    
    	if err = s3Select.Open(objectRSC); err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
  2. cmd/object-handlers_test.go

    					}
    					// Validate the HTTP response status code  with the expected one.
    					if want.HTTPStatusCode != rec.Code {
    						t.Errorf("%s, Expected the HTTP response status code to be %d, got %d.", reqType, want.HTTPStatusCode, rec.Code)
    					}
    				} else if want.HTTPStatusCode != http.StatusOK {
    					t.Errorf("got 200 ok, want %d", rec.Code)
    				}
    			}
    		})
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 20:10:44 UTC 2024
    - 163.2K bytes
    - Viewed (0)
  3. cmd/admin-handlers.go

    							HostID:    globalDeploymentID(),
    						})
    					}
    					if !started {
    						setCommonHeaders(w)
    						w.Header().Set(xhttp.ContentType, string(mimeJSON))
    						w.WriteHeader(hr.apiErr.HTTPStatusCode)
    					}
    					if _, err := w.Write(errorRespJSON); err != nil {
    						return
    					}
    					w.(http.Flusher).Flush()
    				}
    				break forLoop
    			}
    		}
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 99.7K bytes
    - Viewed (0)
Back to top