Changes made by VS2013
Added StatusCode property ApiException

This way we can simply check the property, rather than attempting to
parse the exception's message to determine the original cause.