Skip to content

Instantly share code, notes, and snippets.

@ghusta
Created January 2, 2019 11:08
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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
Copy link
Author

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