Logo
NeoArc Studio

Responses and OpenAPI Export

Document API responses with status codes and schemas. Export your API documentation to OpenAPI 3.1 format for use with other tools.

Complete API documentation includes response definitions for each endpoint. NeoArc supports a comprehensive set of HTTP status codes and exports to OpenAPI 3.1 format for compatibility with code generators, API gateways, and documentation tools.

Configuring Responses

Response Properties

HTTP Status Codes

NeoArc supports status codes across all standard categories:

2xx Success

Status CodeDescription
200 OKStandard success response
201 CreatedResource created successfully
202 AcceptedRequest accepted for processing
204 No ContentSuccess with no response body
206 Partial ContentRange request successful

3xx Redirection

Status CodeDescription
301 Moved PermanentlyResource moved permanently
302 FoundTemporary redirect
304 Not ModifiedCached version is current
307 Temporary RedirectTemporary redirect (preserves method)
308 Permanent RedirectPermanent redirect (preserves method)

4xx Client Errors

Status CodeDescription
400 Bad RequestMalformed request
401 UnauthorizedAuthentication required
403 ForbiddenPermission denied
404 Not FoundResource does not exist
405 Method Not AllowedHTTP method not supported
409 ConflictRequest conflicts with current state
422 Unprocessable EntityValidation failed
429 Too Many RequestsRate limit exceeded

5xx Server Errors

Status CodeDescription
500 Internal Server ErrorUnexpected server error
501 Not ImplementedFeature not implemented
502 Bad GatewayInvalid upstream response
503 Service UnavailableServer temporarily unavailable
504 Gateway TimeoutUpstream timeout

Response Headers

Document response headers by linking to a header schema. Common response headers:

HeaderPurpose
X-Request-IDCorrelation identifier
X-RateLimit-RemainingRate limit information
ETagResource version for caching
LocationURI of created resource (201 responses)
Retry-AfterWhen to retry (429, 503 responses)

Common Response Patterns

Success with Data
200 OK with a schema defining the response body. Use for GET requests returning resources.
Created
201 Created with Location header pointing to the new resource. Use for POST requests that create resources.
No Content
204 No Content with no response body. Use for DELETE requests or updates that do not return data.
Error Response
Use a consistent error schema across all 4xx and 5xx responses. Include error code, message, and optional details.

OpenAPI Export

NeoArc exports API definitions to OpenAPI 3.1 format, compatible with:

API Gateways
Kong, AWS API Gateway
Code Generators
OpenAPI Generator, Swagger Codegen
Documentation Tools
Swagger UI, Redoc
Testing Tools
Postman, Insomnia
Mock Servers
Generate mock APIs for development

Export Mappings

NeoArc converts internal structures to OpenAPI format:

Type Specialisations in Export

Field type specialisations map to OpenAPI formats:

CategoryFormats
Date/Timedate-time, date, time
Stringsemail, uri, uuid
Networkhostname, ipv4, ipv6
Numbersint32, int64, float, double
Binarybyte, binary, password

Exporting Your API

Next Steps

Getting Started with REST APIs
Learn the fundamentals of authoring REST API documentation.
Learn more →
Schema Editor
Define request and response schemas
Learn more →