I'm using camping with reststop to do a html front end for sending pre-defined messages to different devices (puts will work) depending on the time (will parse cron). No real deadline.<br><br>Works great up to now, much fun, forgot to sleep.<br>
<br>Problem is when I pass a URL of the form /device/1/ping without a "Ping" controller method. It will send me a "501 Not Implemented". Interestingly enough, /device/1/1/ping will give me "404 Not Found" which I have properly handled.<br>
<br>So my question are: <br>In what part of the code can I catch the 501? <br>How can I implement a catch-all controller method? <br>Who's giving me the nicely formated web page when the 501's happening? <br>Where could I have found that out? <br>
If I stop using reststop, will the problem go away?<br><br>Attached is what I have worked up till now. Has a postamble, will work with webrick.<br>