Skip to content

Commit

Permalink
returning Bad request when input type does not match
Browse files Browse the repository at this point in the history
  • Loading branch information
pakak-ndouba committed Jul 19, 2018
1 parent fea5c2a commit 77b41e3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def do_transform(transform):
# whether the request contains the right type
if transform.input_type and transform.input_type is not Unknown and \
not isinstance(req.entity, transform.input_type):
return Response('Not found', status_code=404)
return Response('Bad request', status_code=400)

# Execute it!
msg = transform().do_transform(
Expand Down

0 comments on commit 77b41e3

Please sign in to comment.