I have recorded script using the BlazeMeter & Opened into the
JMeter(4.0). While Running the Script in
"View Results Tree" Result displayed
Response code: 419 with "unknown status".
Please suggest me the correct solution.
You need to pass the token generated during the GET request of login page. The token will be present in the Response data section of the login thread in View Result Tree. You will need to add a Regex expression extractor in the Login thread. Using that you will be able to find the token and then pass it the next page where you are POSTing credentials. You may also have to pass the token to the HTTP Header Manager.
According to http://getstatuscode.com/419
HTTP 419 response means that you were authorized to perform certain actions when you recorded the script, but now your authorization token (or any marker that assigns permissions to a user that is used in your case) got expired so that you cannot just rerun your recorded script whenever you want.
You have to consult with the dev team. They should advice on how to amend your recorded script to make it independent from particular run.
You should not be getting this code as it is not a part of HTTP 1.1 protocol standard
It might be the case your application uses this status code for some form of error, i.e. if you're trying to test a Laravel-based web application and not supplying a valid CSRF token. If it is the case - you will need to perform correlation - the process of extracting the token from previous response and adding it to the next request using JMeter PostProcessors