# error_code.h
## Overview
Defines the error codes for the **FileIO** module.
**System capability**: SystemCapability.FileManagement.File.FileIO
**Since**: 12
**Related module**: [FileIO](_file_i_o.md)
## Summary
### Types
| Name| Description|
| -------- | -------- |
| typedef enum [FileManagement_ErrCode](_file_i_o.md#filemanagement_errcode-1) [FileManagement_ErrCode](_file_i_o.md#filemanagement_errcode) | Defines an enum for the error codes used in the **FileIO** module.|
### Enums
| Name| Description|
| -------- | -------- |
| [FileManagement_ErrCode](_file_i_o.md#filemanagement_errcode-1) {
ERR_OK = 0,
ERR_PERMISSION_ERROR = 201,
ERR_INVALID_PARAMETER = 401,
ERR_DEVICE_NOT_SUPPORTED = 801,
ERR_EPERM = 13900001,
ERR_ENOENT = 13900002,
ERR_ENOMEM = 13900011,
ERR_UNKNOWN = 13900042
} | Enumerates the error codes used in the **FileIO** module.|