Peek Interview Question

What is the difference between 400 and 500 HTTP codes? Use of 304 status code?