Installs into .claude/skills of the current project.
Are you the author of Orpc Redirect Response?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ali-master-orpc-redirect-response)
---
name: oRPC Redirect Response
description: Standard HTTP redirect response in oRPC OpenAPI.
license: MIT
metadata:
author: Ali Torki
homepage: https://github.com/ali-master
version: "1.0.0"
---
# Redirect Response
Return a standard HTTP redirect response in oRPC OpenAPI.
## Basic Usage
Combine `successStatus` and `outputStructure`:
```ts
const redirect = os
.route({
method: 'GET',
path: '/redirect',
successStatus: 307,
outputStructure: 'detailed'
})
.handler(async () => {
return {
headers: {
location: 'https://orpc.dev',
},
}
})
```
## Limitations
When using [OpenAPILink](/docs/openapi/client/openapi-link), oRPC treats the redirect as a normal response. Some environments like browsers may restrict access to the redirect response, **potentially causing errors**. Server environments like Node.js handle this without issue.