It depends on whether the non 20x response can be processed by the provided Handler. If it can you (if in this case it is a json object) you can easily expand the range of acceptable response codes with the `when` method:
http://sourced.implicit.ly/net.databinder/dispatch-core/0.8.0/executor.scala.html#18247Otherwise, you can catch the exception or use the "allow any status code with x" flow defined in HttpSpec:
http://sourced.implicit.ly/net.databinder/dispatch-http.test/0.8.0/HttpSpec.scala.htmlThat one allows you to pattern match on the status code and call the response handler against the response if it is expected to work for the status value.
Nathan