Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex API Gateway
  • Getting started
    • Resource relationships
    • Networking
      • Overview
      • Greedy parameters
      • Generic HTTP method
      • Authorization using a Cloud Functions function
      • Authorization using a JWT
      • WebSocket protocol support
      • Data validation
      • CORS
      • Specification parameterization
      • Canary release
      • Request rate limit
      • Response code replacement
      • Transformation of response and request bodies
    • Quotas and limits
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  • FAQ
  1. Concepts
  2. Specification extensions
  3. Response code replacement

x-yc-status-mapping extension

Written by
Yandex Cloud
Updated at August 22, 2024

The x-yc-status-mapping extension allows you to replace a response code in an integration. For example, if you get the response code 404 in an integration with Object Storage, you can replace it with code 200.

The extension is intended for the ResponseBody object from the OpenAPI specification. The extension value is the new response code value.

Extension specificationExtension specification

Specification example:

paths:
  /:
    get:
      responses:
        200:
          description: ""
          content:
            ...
          x-yc-status-mapping: 201
      ...

Was the article helpful?

Previous
Request rate limit
Next
Transformation of response and request bodies
© 2025 Direct Cursus Technology L.L.C.