Re: Q A: $r-custom_response

2002-04-23 Thread Perrin Harkins
Issac Goldstand wrote: Reposting a question (and the answer) that geoff and I discussed in the IRC room, as I think it's worthwhile to mention... I had the following line of code (actually many of the sort): $r-custom_response(FORBIDDEN=File size exceeds quota.); And kept getting errors

Re: Q A: $r-custom_response

2002-04-23 Thread Per Einar Ellefsen
At 19:29 23.04.2002, Issac Goldstand wrote: Reposting a question (and the answer) that geoff and I discussed in the IRC room, as I think it's worthwhile to mention... I had the following line of code (actually many of the sort): $r-custom_response(FORBIDDEN=File size exceeds quota.); And kept

Re: Q A: $r-custom_response

2002-04-23 Thread Per Einar Ellefsen
At 19:38 23.04.2002, Perrin Harkins wrote: Issac Goldstand wrote: Reposting a question (and the answer) that geoff and I discussed in the IRC room, as I think it's worthwhile to mention... I had the following line of code (actually many of the sort): $r-custom_response(FORBIDDEN=File size

Re: Q A: $r-custom_response

2002-04-23 Thread Perrin Harkins
Per Einar Ellefsen wrote: Well, this one is exported by Apache::Constants, so if you don't want to do $FORBIDDEN = FORBIDDEN; somewhere at the top of your code, you're bound to continue using constants, right? That's still safer. I used the constants pragma on a big project and I saw

Re: Q A: $r-custom_response

2002-04-23 Thread Geoffrey Young
Can anyone tell us if the Apache::Constants all just standard HTTP response codes, or are some of them actually Apache-specific? there are over 90 constants in Apache::Constants, which range from HTTP constants (like FORBIDDEN for 403) to Apache specific ones (like DECLINED for -1 and

Re: Q A: $r-custom_response

2002-04-23 Thread Per Einar Ellefsen
At 19:51 23.04.2002, Perrin Harkins wrote: Per Einar Ellefsen wrote: Well, this one is exported by Apache::Constants, so if you don't want to do $FORBIDDEN = FORBIDDEN; somewhere at the top of your code, you're bound to continue using constants, right? That's still safer. I used the constants

Re: Q A: $r-custom_response

2002-04-23 Thread Perrin Harkins
Per Einar Ellefsen wrote: I suppose Apache::Constants could have been extended to return globals if requested... But is there really any gain in that? Only in that people will not get tripped up by the possible bugs that using subroutines as constants causes. I guess Apache::Constants is

Re: Q A: $r-custom_response

2002-04-23 Thread Per Einar Ellefsen
At 22:04 23.04.2002, Perrin Harkins wrote: Per Einar Ellefsen wrote: I suppose Apache::Constants could have been extended to return globals if requested... But is there really any gain in that? Only in that people will not get tripped up by the possible bugs that using subroutines as constants