Skip to content

Olivine-Labs/lusty-error-status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lusty-error-status

Version 1.0

Handles error conditions based on status code, specifies channels to be executed

Require it in your config:

local config = {
  --...
  error = {
    ['lusty-error.error.status'] = {
      prefix = {{'input'}},
      status = {
        500 = {{'request:500'}},
        404 = {{'request:404'}}
      },
      suffix = {{'render'}, {'output'}}
    }
  }
}

error codes xxx default to x00 if no specific handler specified

License

Copyright 2013 Olivine Labs, LLC. MIT licensed. See LICENSE file for details.

About

Status code based error redirection

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages