Added convenience methods for checking RACK_ENV
Put error in env['rack.exception'] before calling error handler