response headers and sql error