Fixed incorrect list parsing. Updated error response.