It looks to me like an exception occurring in serve/servlet is issuing a response that begins with
#"HTTP/1.1 500 Okay” To the best of my knowledge, 500 represents an internal server error, and this header looks like a bug. Is this behavior correct or incorrect? (I should clarify that this exception is obviously caused by a bug in my code, and I can easily fix it. I was just surprised that the end result was a 500 Okay, rather than a 500 Server Error.) John ObExtraInfo: here’s the text of the exception as it appears on the server console: ../../../../../../collects/racket/contract/private/blame.rkt:156:0: Servlet (@ /mhk/blothints) exception: serve/servlet: contract violation expected: can-be-response? given: "GET url \"/mhk/blothints\" doesn't match known pattern" in: the range of the 1st argument of (->* ((-> request? can-be-response?)) (#:banner? boolean? #:command-line? boolean? #:connection-close? boolean? #:extra-files-paths (listof path-string?) #:file-not-found-responder (-> request? can-be-response?) #:launch-browser? boolean? #:listen-ip (or/c #f string?) #:log-file (or/c #f path-string?) #:log-format (or/c (or/c 'parenthesized-default 'extended 'apache-default) (-> request? string?)) #:manager manager? #:max-waiting exact-nonnegative-integer? #:mime-types-path path-string? #:port listen-port-number? #:quit? boolean? #:server-root-path path-string? #:servlet-current-directory path-string? #:servlet-loading-responder (-> url? any/c can-be-response?) #:servlet-namespace (listof module-path?) #:servlet-path string? #:servlet-regexp regexp? #:servlet-responder (-> url? any/c can-be-response?) #:servlets-root path-string? #:ssl-cert (or/c #f path-string?) #:ssl-key (or/c #f path-string?) #:ssl? boolean? #:stateless? boolean? #:stuffer (stuffer/c (-> serializable? bytes?) (-> bytes? serializable?))) void) contract from: <pkgs>/web-server-lib/web-server/servlet-env.rkt blaming: (/Users/clements/rackbot/rackbot/klocker/klocker.rkt main) (assuming the contract is correct) at: <pkgs>/web-server-lib/web-server/servlet-env.rkt:43.2 -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: PGP signature