Improved signature response status code checks

sequential 'if' will mean that all test blocks will always be checked. The 'case' will avoid this and is more performant than 'if..elif'.