Fixed status code return when exception code is 0

Modified Application.php to return 1 when code is 0 in the thrown exceptiom