Skip to content
Commit c0eb9bd9 authored by Matt Spinler's avatar Matt Spinler Committed by Ed Tanous
Browse files

REST: Use status 400 for method arg problems



Use 400, which is a client error, for errors when
deciphering method call arguments as opposed to
a server error, 500.  The robot testcases expect this
and it also makes sense since the client must have
passed in a bad argument.

Only the error that results from a method call failing
will be 500.

Resolves openbmc/bmcweb#25

Change-Id: I9504905992fee3bc0119ff7cae8512eba899daa4
Signed-off-by: default avatarMatt Spinler <spinler@us.ibm.com>
parent 673eda6d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment