← Back to Request and Response Mastery
Lesson 4

Redirects and Status Codes

Request and Response Mastery · Created 2026-06-01 13:34:28

Send any HTTP status code or custom header.

Status Codes
Response.Status = '301 Moved Permanently'
Response.Status = '401 Unauthorized'
Response.Status = '403 Forbidden'
Response.Status = '404 Not Found'
Response.Status = '500 Internal Server Error'

Custom Headers
Response.AddHeader 'X-Powered-By', 'ASPPY'
Response.AddHeader 'Refresh', '5;url=/home'

ASPPY Rules
Redirect sets Status=302 with Location header
Buffer must be True before Redirect
Always follow with Response.End

Live Demo →