Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/p/i/piecrust-HEAD/piecrust/resources.py   piecrust(Download)
            return self.create_response(request, data, response_class=http.HttpBadRequest)
        except:
            return http.HttpBadRequest()
 
    def handle_500(self, request, exception):
 
            serialized = self.serialize(request, errors, desired_format)
            response = http.HttpBadRequest(content=serialized, content_type=build_content_type(desired_format))
            raise ImmediateHttpResponse(response=response)