Browsed by
Month: August 2017

HTTP Status Codes Explained

HTTP Status Codes Explained

In plain English, Hypertext Transfer Protocol (HTTP) response status codes is the status of the clients request to the server. This status responses are categorized in five different classes. The first digit of the status code specifies one of five standard classes of responses i.e. 1xx Informational responses, 2xx Success, 3xx Redirection, 4xx Client Errors and 5xx Server Errors. We might have been familiar with some of these most frequently seen status code. The official registry…

Read full Article Read More

List of Most Common HTTP Status Code

List of Most Common HTTP Status Code

The Hypertext Transfer Protocol (HTTP) is a stateless application level protocol for distributed, collaborative, hypertext information systems. Every request to the server is completely new and not related to the previous one. Status codes are used to represent the status response of the client request (HTTP request) to the server. These status codes are part of  of the HTTP/1.1 standard (RFC 7231). The first digit of the status code specifies one of five standard classes of…

Read full Article Read More

Syntax Error or Access Violation: 1071 Specified Key Was Too Long

Syntax Error or Access Violation: 1071 Specified Key Was Too Long

This error is created by the default character set used by Laravel in database. Anyone using MySQL version older than the 5.7.7 release or MariaDB older than the 10.2.2 release need to manually configure default string length generated by migrations in order for MySQL to create indexes for them.  This issue is clearly addressed in Laravel documentation. SOLUTION 1 You need to add Schema::defaultStringLength in the boot function in your AppServiceProvider. use Illuminate\Support\Facades\Schema; /** *…

Read full Article Read More

Base Table or View Already Exists Laravel

Base Table or View Already Exists Laravel

If you are familiar with Laravel environment this might be the most common issue while migrating to database. This is caused by some kind of error during migration or incomplete migration before. As a result, incomplete tables are created in the database. And, if you try to migrate next time migration error (below or similar) will be thrown. I have encounter with similar kind of issue after I have fixed Syntax error or access violation:…

Read full Article Read More