[Dancer-users] status code needs to be an integer greater than or equal to 100...

Puneet Kishor punk.kish at gmail.com
Mon Jan 17 18:32:04 CET 2011


I am quite frustrated with Dancer's error reporting, perhaps the only 
part of it that needs improvement, since the rest of Dancer is so wonderful.


I am getting the dreaded, "status code needs to be an integer greater 
than or equal to 100 at 
/usr/local/lib/perl5/site_perl/5.12.1/Plack/Middleware/StackTrace.pm 
line 27" message in my browser, all nicely and neatly formatted. I can't 
for the life of me figure out what is triggering this, so the only 
recourse I have is to comment my code completely and then uncomment 
lines one by one. Any suggestions on how I can make this process more 
scientific and quick?

Besides this, the problem is that Dancer seems to report messages in 
different ways depending on when the error is trapped. Sometimes, I get 
this nicely formatted message, colors and all, in my browser. Sometimes, 
I get just a plain text message in my browser. Sometimes, I get the 
"Internal Server Error" and then I have to pore through the Apache logs. 
This inconsistency makes for difficulty.

Many thanks,

-- 
Puneet Kishor


More information about the Dancer-users mailing list