Add StatusCode() method to type respError