GravityPDF / gravity-pdf

Gravity PDF is a GPLv2-licensed WordPress plugin that allows you to automatically generate, email and download PDF documents using Gravity Forms.
https://gravitypdf.com
88 stars 21 forks source link

Return appropriate status code when PDF error occurs #1474

Closed jakejackson1 closed 1 year ago

jakejackson1 commented 1 year ago

Description

A 400, 401, 404, or 500 status code will returned with the request if an error occurs when viewing a PDF.

Testing instructions

Screenshots

Checklist:

Additional Comments

codecov[bot] commented 1 year ago

Codecov Report

Merging #1474 (85638aa) into development (8269803) will increase coverage by 18.17%. The diff coverage is n/a.

:exclamation: Current head 85638aa differs from pull request most recent head 26dc2bf. Consider uploading reports for the commit 26dc2bf to get more accurate results

@@                Coverage Diff                 @@
##             development    #1474       +/-   ##
==================================================
+ Coverage          75.12%   93.30%   +18.17%     
==================================================
  Files                243       57      -186     
  Lines              12866     1464    -11402     
  Branches             370      370               
==================================================
- Hits                9666     1366     -8300     
+ Misses              3192       90     -3102     
  Partials               8        8               

see 186 files with indirect coverage changes