Logo
  • Star
  • Product
    Product
    What is Mockoon?Mockoon CloudUse casesPricing
    Applications
    Desktop applicationWeb applicationCLIServerless package
  • Resources
    Learn
    DocsTutorialsLive Training
    Tools
    API PlaygroundMock samplesTemplatesUseful tools
    Misc
    BlogReleasesFeaturesFAQRoadmap
  • Pricing
  • Demo
    • Log in
    • Sign up

Documentation


  • About the documentation
  • Mockoon GUI cheat sheet
  • server configuration
  • Port and prefix
  • Partial mocking with proxy mode
  • TLS
  • CORS
  • Listening hostname/adapter
  • requests
  • Supported body formats
  • Query parameters
  • api endpoints
  • Routing
  • HTTP routes
  • CRUD routes
  • WebSockets
  • Folders
  • route responses
  • Multiple route responses
  • Responses rules
  • Global routes with rules
  • response configuration
  • Body
  • Headers
  • File serving
  • templating
  • Overview
  • Helpers
  • Request helpers
  • JWT helpers
  • Response helpers
  • Variables helpers
  • Faker.js helpers
  • variables
  • Local variables
  • Global variables
  • Environment variables
  • data buckets
  • Overview
  • Using data buckets
  • callbacks
  • Overview
  • Using callbacks
  • logging and recording
  • Requests logging
  • Auto-mocking and recording
  • admin api
  • Overview
  • Data Buckets
  • Environment Variables
  • Global Variables
  • Logs
  • Server state
  • Events
  • mockoon cloud
  • Overview
  • Web application
  • Cloud API mock deployments
  • Data synchronization and team collaboration
  • AI assistants
  • openapi
  • Import/export in OpenAPI format
  • OpenAPI specification compatibility
  • mockoon data files
  • Data files
  • Sharing your mock API files
  • Settings and logs

 Templating response helpers


Mockoon offers the following helpers which can customize the outgoing response:

  • status

 status

Set the response status code. This helper does not return any content.

Arguments (ordered)TypeDescription
0numberValid status code (100-999)

Examples

Copy
{{status 404}}

Feedback? Questions? We are always here to help.

Contact us
Mockoon eyes logo
Popular tutorials and articles
  • What is Mockoon?
  • Getting started with Mockoon 🚀
  • Self-host a mock API with Mockoon CLI
  • Partial mocking with proxy mode
  • Requests recording and auto-mocking
  • Dynamic mock data with Mockoon's templating system
  • What are APIs?
  • What is API mocking?
  • Why do you need API mocking?
  • View all tutorials
Learn
  • Docs
  • FAQ
  • Blog
  • Releases
  • Tutorials
  • Video tutorials
  • Training
  • Articles
  • Comparisons
  • Case studies
Cloud
  • Overview
  • Pricing
  • AI-powered API mocking
  • Services status
Services
  • Training
  • Custom services
Apps
  • Desktop application
  • Web application
  • CLI
  • Serverless package
Tools
  • API playground
  • Mock samples
  • Templates
  • Mockoon button
  • Useful tools
More
  • About us
  • Sponsor us
  • Public roadmap
  • Get support
  • Newsletter
  • Brand assets
  • OSS friends
Policies
  • Terms of service
  • Privacy policy

© Mockoon 2017 - 2025