> ## Documentation Index
> Fetch the complete documentation index at: https://mockulator.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Endpoint Types

> Mockulator provides two endpoint types for different testing scenarios.

All endpoints support custom status codes, response delays, content types, and optional authentication.

## Validation Endpoints

Perfect for testing form submissions and input validation. Define rules for headers, query parameters, and request body fields. The endpoint automatically returns appropriate success or error responses based on whether rules pass.

**Best for:** Form testing, API input validation, request format verification

## HTTP Endpoints

Our most versatile endpoint type. Create multiple response scenarios with conditional rules based on request parameters. Switch between response modes to test various scenarios.

**Best for:** Complex API simulation, conditional responses, error scenario testing

## Advanced HTTP Features

<AccordionGroup>
  <Accordion title="Custom Response Headers">
    Add any HTTP headers to your responses — perfect for CORS, caching, or custom application headers.
  </Accordion>

  <Accordion title="Response Delays">
    Simulate real-world network conditions by adding artificial latency (0–30,000ms). Test timeout handling and loading states.
  </Accordion>

  <Accordion title="Multiple Content Types">
    Support for JSON, XML, plain text, HTML, and form-urlencoded. Appropriate headers are set automatically.
  </Accordion>

  <Accordion title="Status Code Customization">
    Return any HTTP status code (200, 201, 400, 401, 404, 500, etc.) to test error handling.
  </Accordion>
</AccordionGroup>

## Error Response Format

All endpoints return consistent error responses:

```json theme={null}
{
  "error": "Validation failed",
  "message": "Name field is required",
  "status": 400,
  "details": {
    "field": "name",
    "rule": "required"
  }
}
```
