Plack:...:Status(3pm)

πŸ“¦
version 1.101150 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu noble

✨ NAME ✨

Plack::Middleware::Status β€” it's the Plack Middleware that maps urls to status code-driven responses πŸ’… like it literally takes a url pattern and says "bestie, this one gets a 501, no notes"

Okay so we're in the Plack:...:Status(3pm) manual page, and honestly? She's short, she's sweet, she's iconic πŸŽ€


🌸 VERSION 🌸

version 1.101150 β€” that's the one, that's the girlie 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

okay so picture this, you got your app.psgi and you just wanna yeet certain urls straight to a status code, right? watch:

# app.psgi
use Plack::Builder;
my $app = sub {
    # ...
};
builder {
    enable 'Status', path => qr{/not-implemented}, status => 501;
    $app;
};

the way that enable 'Status', path => qr{/not-implemented}, status => 501; just does that 😭 so clean, so demure, so mindful 🧚


πŸ‘‘ AUTHOR πŸ‘‘

Patrick Donelan <pat@patspam.com> β€” the icon, the moment, the legend πŸ«‘πŸ’–


This software is copyright (c) 2010 by Patrick Donelan. πŸŽ€

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. fr fr, go off, do whatever, it's free πŸ’…βœ¨


and that's the whole vibe bestie 🌈 this was perl v5.34.0, dated 2022-06-16, and yeah the footer is still out here being Plack:...:Status(3pm) β€” periodt πŸ’œπŸ¦‹ no cap, that's the whole page, love that for us πŸ’€πŸŒΈ

πŸ“¦ where this page comes from