Skip to content

HAMUR_W3017: createError() receives an option that was removed

createError() receives an option that was removed. Warning HAMUR_W3017 belongs to hamur, client and shared app code (3001 – 3999).

Message

text
HAMUR_W3017 createError received statusCode; write status
text
HAMUR_W3017 createError received statusMessage; write statusText

Cause

createError has statusCode or statusMessage. They are the names of Nuxt's and h3's options; Hamur's are status and statusText, so the key is ignored and the error answers 500.

Fix

Write status for statusCode and statusText for statusMessage; hamur migrate nuxt rewrites them.