---
title: "Discussion on \"Flask: Stop Requests the Standard Way with abort() — 404/403 with Custom Error Pages in 5 Minutes\" | Hashnode"
description: "Discussion on \"Flask: Stop Requests the Standard Way with abort() — 404/403 with Custom Error Pages in 5 Minutes\". When a user opens a post that does not exist, or visits the admin area without permission, the view must stop immediately and return the correct error code — not render an error template by hand and r"
url: "https://hashnode.com/posts/flask-stop-requests-the-standard-way-with-abort-404-403-with-custom-error-pages-in-5-minutes/6af72a5e92d9e1c1e449f025"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Flask: Stop Requests the Standard Way with abort() — 404/403 with Custom Error Pages in 5 Minutes](https://linhfishdev.hashnode.dev/flask-stop-requests-the-standard-way-with-abort-404-403-with-custom-error-pages-in-5-minutes?utm_source=hashnode&utm_medium=feed)

When a user opens a post that does not exist, or visits the admin area without permission, the view must stop immediately and return the correct error code — not render an error template by hand and r

3d ago · 4 min read · linhfishdev.hashnode.dev  
Read the article

## Written by

[Linh Fish Dev](https://hashnode.com/@linhfishdev)

@linhfishdev · Ho Chi Minh City, Vietnam

  
[View profile](https://hashnode.com/@linhfishdev)

Backend developer — Python, Django, FastAPI. Sharing practical tips and tutorials daily. Blog: linhfish.dev

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
