Changing status code from 400 to 500