LoginLogin About

Support » Knowledge Base » General questions » Scripts troubleshooting »

Server error codes

When working with online applications a user may receive an error message accompanied by a 3-digit error code. Below are provided descriptions and general guidelines on the elimination of the most frequently occurring server errors.

401 ("Unauthorized"). As a rule, this error message appears on an attempt to access a password-protected URL using incorrect authorization data. To avoid this error, reload the page and enter correct login data (user name and password).

403 ("Forbidden"). This error code means that the server security policy disallows accessing a web page or a file located at the specified URL. In most cases such access denial is applied using special directives for the Apache web server in a .htaccess file, or by assigning limiting access rights for PHP scripts to certain files or directories on the server.

404 ("Not Found"). An incorrect URL was entered to open a web page or download a file from the server. To open the necessary page or download the file, enter a different (correct) URL in the browser address bar.

500 ("Internal Server Error"). This error is often caused by the inability of the server to complete user request, e.g. to generate HTML code for the requested web page. The reason for that might be an error in PHP code or incorrectly assigned permissions for files or directories. For more in-depth analysis of the problem careful scrutiny of the log records generated by the PHP script, web server or the database server.

502 ("Bad Gateway"). This is an error of the gateway or proxy server. It is often caused by a failure on the server where PHP scripts are installed. To eliminate the problem, contact your server administrator (the web hosting support team).

504 ("Gateway Timeout"). This error occurs, if the gateway or proxy server has not received the content requested by user (a web page or a file) from the web server within the specified timeout. To avoid re-occurrence of this error, you may either increase the timeout value or improve the web server performance (e.g. by optimizing your PHP scripts).