Why inspect the body as well as the status?
A correct-looking status can accompany an unintended payload. State what the client should receive for each branch, then verify status, relevant headers and body together using the actual handler rather than only reading the proposed code.