Skip to content

Instantly share code, notes, and snippets.

@ghusta
Created Jan 2, 2019
Embed
What would you like to do?
Change the HTTP response status for a JSP
<%@ page language="java" contentType="text/html; UTF-8; charset=UTF-8" pageEncoding="UTF-8" trimDirectiveWhitespaces="true" %>
<%
response.setStatus(403);
%>
<!DOCTYPE html>
<html lang="en">
...
</html>
@ghusta

This comment has been minimized.

Copy link
Owner Author

@ghusta ghusta commented Jan 2, 2019

Quite simple. The response status will be 403 in the example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment