New middleware, RackErrorPages #17

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
Contributor

matth commented Nov 4, 2010

Hi,

Wonder if you'd like to merge in this new middleware I've been using recently? It serves static error pages if one exists with the same name as your status code, e.g. public/500.html

Works a little like Rack::NotFound but encompasses any status code, therefore can be used for 400's, 500's etc.

Added spec tests, not using this in production yet but it goes fine on my dev environment.

Cheers,

Matt

Member

rkh commented Dec 10, 2012

Doesn't use Rack::File, needs rebase, please open new pull request if you are still interested

rkh closed this Dec 10, 2012

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