Adding in the proxy_intercept_errors option into nginx because apparently nginx won't handles error codes defined by the error_page directive unless told specifically to do so.