# BadRequest

Represents a CircleCI error response for a 400 status code.

## Supported Types

### ResponseBodyError1

```go
badRequest := apierrors.CreateBadRequestResponseBodyError1(apierrors.ResponseBodyError1{/* values here */})
```

### ResponseBodyError2

```go
badRequest := apierrors.CreateBadRequestResponseBodyError2(apierrors.ResponseBodyError2{/* values here */})
```

## Union Discrimination

Use the `Type` field to determine which variant is active, then access the corresponding field:

```go
switch badRequest.Type {
	case apierrors.BadRequestTypeResponseBodyError1:
		// badRequest.ResponseBodyError1 is populated
	case apierrors.BadRequestTypeResponseBodyError2:
		// badRequest.ResponseBodyError2 is populated
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developers.incidents.cloud.solarwinds.com/go-sdk/docs/models/apierrors/badrequest.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
