Error Kode Pada Request Web

Jika kita mengakses website kadang-kadang keluar informasi kode error jika web tersebut tidak bisa di akses, ini adalah beberapa kemungkinan error. Setiap error tersebut sudah terassosiasi dengan kode numerik (antara lain: 401, 403, 500).

Anda dapat mengkonfigurasi error kode pada webrowser anda. Server yang mempunyai standart apache error messages pages yang biasanya kebanyakan untuk error browser. Jika anda ingin mengembangkan atau mengatur error pages anda sendiri, anda perlu menetapkan pages tersebut di file yang bernama .htaccess, customize error messages yang anda atur dan tentu perlu di upload di directory public_html anda.

Adapun beberapa penjelasan tentang error kode, ada di bawah ini:

401 Authorization Required
ini adalah halaman yang tampil disaat user salah memasukkan sebuah username dan password. Untuk menetapkan error page sebagai authorization.html, lalu tambahkan kode di .htaccess :
ErrorDocument 401 /authorization.html

403 Access Forbidden
ini adalah halaman yang tampil saat ada sebuah data dalam srver web yang bersifat rahasia dan tidak boleh diakses semua orang. Biasanya hal ini dilakukan untuk kepentingan keamanan sebuah web. Untuk menetapkan error page sebagai access.html, tambahkan ke dalam baris file .htaccess :
ErrorDocument 403 /access.html

500 Internal Server Error
Ini adalah halaman yang terlihat oleh pengunjung site anda saat terjadi error prosess sebuah CGI script. Untuk menetapkan error page sebagai error.html, tambahkan ke dalam baris file .htaccess:
ErrorDocument 500 /error.html

catatan : JIka URL penuh dari site anda adalah http://www.earlyedition.info, berarti lokasi /error.html adalah http://www.earlyedition.info/error.html

Error kode lainnya :

400 Bad Request
401 Authorization Required
402 Payment Required (not used yet)
403 Forbidden
404 Not Found
405 Method Not Allowed
406 Not Acceptable (encoding)
407 Proxy Authentication Required
408 Request timed out
409 Conflicting request
410 Gone
411 Content Lenght Required
412 Precondition Failed
413 Request Entity Too Long
414 Request url too long
415 Unsupported Media Type
500 Internal Server Error
501 Not Implemented
502 Bad Gateway
503 Service Unvailable
504 Gateway Time out
505 HTTP Version Not supported

Related Posts:

  • Add Expires Headers to WordPress
    This article have explained how you can add expiry header to your image, javascript and css files to speed up your site when loading.Adding expires headers do not affect the site load time for a f...
  • Force www or without www
    Everyone can link to your site using http://domain.com or http://www.domain.com. A search engine will not always treat both the same, as you can see for yourself - try doing a 'site:yourdomain.com' se...
  • Behind the stars is a password
    I would like to share to EarlyEdition.Info visitor about tricks for newbie, maybe you forgot password but your browser still keeps it. Ever wanted to know what is behind those ******** passwords.F...
  • Robots Text File – robots.txt
    The robots.txt file is a set of instructions for visiting robots (spiders) that index the content of your web site pages. For those spiders that obey the file, it provides a map for what they can, and...
  • Rejected user agents
    2.0 MMP240x320ASUSAU-MICAlcatelAmoiAndroidAudiovoxAvantGoBenQBirdBlackBerryBlazerCDMCellphoneDDIPOCKETDangerDoCoMoElaine/3.0EricssonEudoraWebFlyHP.iPAQHai...

Tags: , , ,

25.Sep.08 Internet, Linux, Server


You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.

Leave a Comment

:)